from xml.etree import ElementTree as ET
def readXmlFile(path):

    tree = ET.parse(path)
    return tree

def main():
    fileName = './files/pom.xml'
    tree = readXmlFile(fileName)
    print(tree.getroot())

    for child in tree.getroot():
        print(child)

if (__name__ == '__main__'):
    main()